package cn.pzaily.fealetter.model;

/**
 * @PackageName: cn.pzaily.fealetter.model
 * @Description:
 * @Author: Pang
 * @Date: 2021-11-20 20:36
 */
public class ServerTopic {

    public static final String INIT_CONNECT = "INIT_CONNECT";
    public static final String USE_NEW_CONNECT = "USE_NEW_CONNECT";

    private String option;
    private String value;

    ServerTopic(String option, String value){
        this.option = option;
        this.value = value;
    }

    public static ServerTopic.ServerTopicBuilder builder() {
        return new ServerTopic.ServerTopicBuilder();
    }

    @Override
    public String toString() {
        return null;
    }

    public static class ServerTopicBuilder {


        private String option;
        private String value;

        ServerTopicBuilder() {
        }

        public ServerTopic.ServerTopicBuilder option(String option) {
            this.option = option;
            return this;
        }
        public ServerTopic.ServerTopicBuilder value(String value) {
            this.value = value;
            return this;
        }

        public ServerTopic build() {
            return new ServerTopic(this.option, this.value);
        }
    }


}
